﻿var API_URL = (function() {
    // var url = 'http://223.112.224.115:8000/';  //老的接口
    var url = 'http://cms.kh.cst-info.cn:8000/'; //新的接口  开化接口
    //var url = 'http://122.194.13.12:8000/';  //新的接口  开化接口/
    // var url = '';  //新的接口  开化接口


    var apiUrl = {
        //数据请求接口统一前缀
        baseURL: url + "api/v2/",

        //图片接口统一前缀,无更改
        loginURL: url,

        WXUrl: 'http://cms.kh.cst-info.cn:8000/',
        // WXUrl: 'http://122.194.13.12:8000/',


        WXHeadimg: "http://thirdwx.qlogo.cn",
        WXHeadimg: "",

        imgURL: "http://cms.kh.cst-info.cn:8000/",
        // imgURL: "",


        /*自定义接口配置*/
        //详情二维码
        WXUrlDetail: "http://dongtaiwx.cst-info.cn:8000/#/textAndVideo",
        //点单二维码
        wxshareDD: 'http://dongtaiwx.cst-info.cn:8000/#/modularThree/selfHelpOrderDetail/',
        //志愿者团队详情二维码
        Group: "http://dongtaiwx.cst-info.cn:80000/#/modularThree/selfHelpOrderDetail",
        //活动二维码
        activityUrl: "http://dongtaiwx.cst-info.cn:8000/#/modularTwo/activityDetail",
        //帮助二维码
        helpUrl: "http://dongtaiwx.cst-info.cn:8000/#/modularThree/selfHelpOrderDetail",




        sourceList: "rubbish/rubbishList",
        // 点单主题列表 /api/v2/order/orderList
        orderList: 'order/orderList',
        //点单
        orderSure: 'order/index',
        //活动列表
        getActivityList: 'activity/activityList',
        //获取活动详情  传id
        getActivity: 'activity',
        //
        culture: "culture/cultureList",
        cultureList: "culture/index",
        //报名活动  传id
        activityJoin: 'activity/join',
        // 文化礼堂
        //文章，资讯列表 && 视频列表   参数传cid
        getArticleList: 'article/articleList',
        //事件列表
        event: "event/eventList",
        //事件
        enent1: "event",
        //点单列表
        order: "order/orderList",
        //文章，资讯详情 && 视频详情   参数传id
        getArticle: 'article',
        //帮助列表
        helpList: 'help/appealList',
        //帮助详情   参数传id
        help: 'help/index',
        // 活动点赞
        like: 'activity/like',
        // 文章点赞
        articleLike: 'article/like',

        //志愿花开统计接口
        volunteercount: 'cloud/index',

        // .地区列表 /api/v2/area/areaList
        areaList: 'area/areaList',
        //随手拍列表
        eventList: "event/eventList",
        //商品列表
        goodList: "goods/goodsList",

        //积分商品兑换 传goods_id  和token
        goodRecord: "record/index",
        //我的兑换记录
        myRecordList: "record/myRecordList",
        //获取子区域详情  传id
        childInfo: 'area/areainfo',
        //点单详情
        orderDetail: 'order/detail',
        //跑马灯
        runLight: 'commons/horse',
        //志愿者风采列表
        volunteerList: 'Volunteer/volunteerGroupList',
        //志愿者风采详情 传id
        volunteer: 'Volunteer/volunteerGroup',
        //东台星级志愿者团体排名列表
        starVolunteerGroup: "volunteer/volunteerGroup",
        //东台星级志愿者排名列表
        starVolunteer: "cloud/starVolunteer",
        //志愿者列表
        getVolunteerList: "volunteer/volunteerList",
        // 导师列表
        teachList: "teacher/teacherList",
        //宣讲预告列表
        preachList: "preach/preachList",
        //宣讲预告详情
        preach: "preach/index",
        //团队成员列表
        memberlist: "member/memberlist",
        //团队成员详情
        member: "member/index"
    }
    return apiUrl
}())